$(document).ajaxSend(function(e,xhr,opt){
    var token = localStorage.getItem("token");
    xhr.setRequestHeader("userToken",token);
})

function logout() {
    localStorage.removeItem("token");
    location.href = "/blog_login.html"
}